/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package model.entity;

import java.sql.Date;
import java.util.List;

/**
 *
 * @author admin
 */
public class Post {
    private int post_id;
    private int vote; 
    private int status;
    private User user;
    private String title;
    private String address;
    private String city;
    private String content;
    private double price;
    private Date created_date;
    private List<Image> imageList = null;
    private List<Comment> commentList = null;

    public Post() {
    }

    public Post(int post_id, int vote, int status, User user_id, String title, String address, 
            String city, String content, double price, Date created_date) {
        this.post_id = post_id;
        this.vote = vote;
        this.status = status;
        this.user = user_id;
        this.title = title;
        this.address = address;
        this.city = city;
        this.content = content;
        this.price = price;
        this.created_date = created_date;
    }

    public int getPost_id() {
        return post_id;
    }

    public void setPost_id(int post_id) {
        this.post_id = post_id;
    }

    public int getVote() {
        return vote;
    }

    public void setVote(int vote) {
        this.vote = vote;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public User getUser_id() {
        return user;
    }

    public void setUser_id(User user_id) {
        this.user = user_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Date getCreated_date() {
        return created_date;
    }

    public void setCreated_date(Date created_date) {
        this.created_date = created_date;
    }

    public List<Image> getImageList() {
        return imageList;
    }

    public void setImageList(List<Image> imageList) {
        this.imageList = imageList;
    }

    public List<Comment> getCommentList() {
        return commentList;
    }

    public void setCommentList(List<Comment> commentList) {
        this.commentList = commentList;
    }
    public int getID(){
        return post_id;
    }
}
